package main
import (
	"fmt"
)
type Student struct{

}
func TypeJudge(items ...interface{}){
	for index,x:=range items{
		index++
		switch x.(type){
		case bool:
			fmt.Printf("第%v个参数是 bool 类型 值是%v\n",index,x)
		case float32:
			fmt.Printf("第%v个参数是 float32 类型 值是%v\n",index,x)
		case float64:
			fmt.Printf("第%v个参数是 float64 类型 值是%v\n",index,x)
		case string:
			fmt.Printf("第%v个参数是 string 类型 值是%v\n",index,x)
		case int, int8, int16, int32 ,int64:
			fmt.Printf("第%v个参数是 int 类型 值是%v\n",index,x)
		case Student:
			fmt.Printf("第%v个参数是 Student 类型 值是%v\n",index,x)
		case *Student:
			fmt.Printf("第%v个参数是 *Student 类型 值是%v\n",index,x)
		default :
			fmt.Printf("第%v个参数是 %v 类型 值是%v\n",index,x,x)
		}
	}
}
func main(){
	var n1 float32 =1.1
	var n2 float64 = 1.12312312
	var str string = "123"
	var by byte = '1'
	addree:="北京" 
	n4:=3000
	var  stu1 Student=Student{}
	var  stu2 Student=Student{}
	TypeJudge(n1,n2,str,by,addree,n4,stu1,&stu2)
}